package io.github.cunyu1943;

/**
 * Created with IntelliJ IDEA.
 *
 * @Package : io.github.cunyu1943
 * @ClassName : StringBuilderMethodTest.java
 * @CreateTime : 2022/11/30 22:07
 * @Version : 1.0
 * @Author : 村雨遥
 * @Email : 747731461@qq.com
 * @公众号 : 村雨遥
 * @Website : https://cunyu1943.github.io/JavaPark
 * @Description : StringBuilder 常用方法
 */
public class StringBuilderMethodTest {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder("村雨遥");

        System.out.println("原字符串：" + stringBuilder);

        System.out.println("length(): " + stringBuilder.length());

        stringBuilder.append("cunyu1943");
        System.out.println("append(): " + stringBuilder);

        System.out.println("toString(): " + stringBuilder.toString());

        System.out.println("reverse(): " + stringBuilder.reverse());


    }
}
